package exception;

/**
 * 自定义异常：
 * 通常用来说明业务中不满足业务场景而导致的异常
 * 要求
 * 1.类名要见名知义
 * 2.是Execption
 * 3.提供超类异常的所有构造器(不一定直接继承Exception)
 */
public class IlleagalAgeException extends Exception{
    public IlleagalAgeException() {
    }

    public IlleagalAgeException(String message) {
        super(message);
    }

    public IlleagalAgeException(String message, Throwable cause) {
        super(message, cause);
    }

    public IlleagalAgeException(Throwable cause) {
        super(cause);
    }

    public IlleagalAgeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
